<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Head -->
<head>
    <meta charset="utf-8"/>
    <title>${session.SOFT_NAME }_智能办公系统</title>
    <meta name="description" content="Dashboard"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <%include("/app/resapi/style.html"){}%>
    <link rel="stylesheet" href="/module/zTree_v3/css/bootstrapStyle/bootstrapStyle.css" type="text/css">
    <link href="/module/bootstrap-table/bootstrap-table.css" rel="stylesheet"/>
    <link rel="stylesheet" type="text/css" href="/module/jeDate/jedate.css"/>
    <style type="text/css">
        .table > tbody > tr > td {
            vertical-align: middle;
        }
    </style>
</head>
<body style="overflow-y: auto;">
<div class="page-body" style="padding: 4px 0px 0px 0px">
    <div class="main-container container-fluid">
        <div class="page-container">
            <div class="col-md-12 col-sm-12 col-xs-12" style="padding: 0px">
                <div class="tabbable">
                    <ul class="nav nav-tabs tabs-flat" id="myTab11" style="background-image: url('/gobal/img/tb_header.png'); background-size: 34px 60px;">
                        <li class="active"><a href="/app/core/hr/kpi/kpiplan" aria-expanded="true">考核计划管理 </a></li>
                        <li class=""><a href="/app/core/hr/kpi/kpiplan?view=input" aria-expanded="false">创建考核计划</a></li>
                    </ul>
                    <div class="tab-content tabs-flat" style="padding: 0px;">
                        <div class="row">
                            <div class="col-md-12 col-sm-12 col-xs-12" id="planlistdiv">
                                <div class="btn-group" id="toobar">
                                    <span style="margin-left: 10px;">计划状态:</span>
                                    <span>
									<select id="statusQuery" style="width: 150px; display: inline-block; border-radius: 0px;" class="form-control">
									<option value="">全部</option>
									<option value="0">未生效</option>
									<option value="1">生效中</option>
									<option value="2">已终止</option>
									</select>
									</span>
                                    <span style="margin-left: 10px;">考核规则:</span>
                                    <span>
									<select id="kpiRuleQuery" style="width: 150px; display: inline-block; border-radius: 0px;" class="form-control">
									<option value="">全部</option>
									<option value="1">指定考核人</option>
									<option value="2">部门主管考核</option>
									<option value="3">逐级考核</option>
									</select>
									</span>
                                    <span style="margin-left: 10px;">考核日期:</span>
                                    <span>
									<input readonly="readonly" placeholder="开始日期" style="width: 150px; display: inline-block;" id="beginTimeQuery"
                                           class="form-control">
									</span> <span style="margin-left: 10px;">-</span>
                                    <span>
									<input readonly="readonly" placeholder="结束日期" style="width: 150px; display: inline-block;" id="endTimeQuery" class="form-control">
									</span>
                                    <span style="margin-left: 20px"> <a href="javascript:void(0);" class="btn btn-magenta js-simple-query">${i18n('system.search')}</a>
										</span>
                                </div>
                                <table id="myTable"></table>
                            </div>
                            <div class="col-md-12 col-sm-12 col-xs-12" id="plandiv" style="display: none;">
                                <form class="form-horizontal" id="form2">
                                    <table class="table table-hover table-striped table-bordered">
                                        <tr>
                                            <td width="20%">${i18n('system.sortNo')}：</td>
                                            <td width="80%" colspan="2"><input style="width:150px" placeholder="${i18n('system.sortNo')}" type="number" name="sortNo" id="sortNo" maxlength="50" value="" class="form-control"></td>
                                        </tr>
                                        <tr>
                                            <td width="20%">考核计划标题：</td>
                                            <td width="80%" colspan="2"><input placeholder="考核计划标题" type="text" name="title" id="title" class="form-control"></td>
                                        </tr>

                                        <tr>
                                            <td width="20%">考核时间段：</td>
                                            <td width="80%" colspan="2">
                                                <input placeholder="${i18n('system.beginTime')}" type="text" name="beginTime" id="beginTime" class="form-control" style="display: inline-block;width: 150px">
                                                <span style="display: inline-block;">-</span>
                                                <input placeholder="${i18n('system.endTime')}" type="text" name="endTime" id="endTime" class="form-control" style="display: inline-block;width: 150px">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="20%">考核规则：</td>
                                            <td width="80%" colspan="2">
                                                <select style="width:150px;border-radius: 0px;" id="kpiRule" name="kpiRule" class="form-control">
                                                    <option value="1">指定考核人</option>
                                                    <option value="2">部门主管考核</option>
                                                    <option value="3">逐级考核</option>
                                                </select>
                                            </td>
                                        </tr>
                                        <tr id="chargetr">
                                            <td width="20%">考核负责人：</td>
                                            <td width="80%" colspan="2"><input placeholder="考核负责人" type="text" name="chargeUser" id="chargeUser" class="form-control" style="width: 150px" readonly="readonly" opt-id="chargeUser" onclick="selectUser(this,'true');"></td>
                                        </tr>
                                        <tr>
                                            <td width="20%">被考核人：</td>
                                            <td width="60%">
                                                <textarea rows="4" cols="" class="form-control" id="userPriv" name="userPriv" readonly="readonly"></textarea>
                                            </td>
                                            <td width="20%">
                                                <a style="cursor: pointer;" opt-id="userPriv" onclick="selectUser(this,'true');">${i18n('system.select')}</a>
                                                <a style="cursor: pointer;" onclick="clearSelect('userPriv')">${i18n('system.clear')}</a>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="20%">被考核部门：</td>
                                            <td width="60%">
                                                <textarea rows="4" cols="" class="form-control" id="deptPriv" name="deptPriv" readonly="readonly"></textarea>
                                            </td>
                                            <td width="20%">
                                                <a style="cursor: pointer;" opt-id="deptPriv" onclick="selectDept(this,'true');">${i18n('system.select')}</a>
                                                <a style="cursor: pointer;" onclick="clearSelect('deptPriv')">${i18n('system.clear')}</a>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="20%">被考核职务：</td>
                                            <td width="60%">
                                                <textarea rows="4" cols="" class="form-control" id="levelPriv" name="levelPriv" readonly="readonly"></textarea>
                                            </td>
                                            <td width="20%">
                                                <a style="cursor: pointer;" opt-id="levelPriv" onclick="selectUserLevel(this,'true');">${i18n('system.select')}</a>
                                                <a style="cursor: pointer;" onclick="clearSelect('levelPriv')">${i18n('system.clear')}</a>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3">考核指标集
                                                <div style="float: right;"><a href="javascript:void(0);" class="btn btn-sky btn-xs js-child-item">添加指标</a></div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3">
                                                <table class="table table-hover table-striped table-bordered">
                                                    <thead>
                                                    <tr>
                                                        <td width="100px">${i18n('system.sortNo')}</td>
                                                        <td>指标标题</td>
                                                        <td width="100px">操作</td>
                                                    </tr>
                                                    </thead>
                                                    <tbody id="child-item-table">

                                                    </tbody>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3">备注说明</td>
                                        </tr>
                                        <tr>
                                            <td colspan="3">
                                                <textarea rows="5" cols="" class="form-control" id="remark" name="remark"></textarea>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="20%">提醒方式：</td>
                                            <td width="80%" colspan="3">
                                                <div id="msgType" style="padding-left: 0px;"></div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="20%">${i18n('attach')}：</td>
                                            <td width="80%" colspan="2">
                                                <div id="show_hrattach"></div>
                                                <a class="addfile" href="javascript:void(0)">${i18n('fileupload')} <input data_value="" type="file" onchange="fileUpLoad('hr','hrattach');" hidefocus="true"
                                                                                                                          maxlength="1" id="hrattach" name="hrattach" class="addfile" multiple="multiple"></a> <a class="addfile" style="width: 200px;" href="#" op_id="hrattach"
                                                                                                                                                                                                                  onclick="selectattach(this,'true')">${i18n('system.netFileSelect')}</a>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" align="center"><a href="javascript:void(0);" class="btn btn-primary js-update-save">更&nbsp;&nbsp;新</a> <a href="javascript:void(0);"
                                                                                                                                                                      class="btn btn-purple js-back-btn" style="margin-left: 20px;">返&nbsp;&nbsp;回</a></td>
                                        </tr>
                                    </table>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="modal fade bs-example-modal-lg" id="setkpiitemmodal" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" style="display: none;">
        <div class="modal-dialog">
            <div class="modal-content">

                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h4 class="modal-title" id="myLargeModalLabel">考核指标集</h4>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal form-bordered" role="form" id="form1">
                        <div class="form-group">
                            <label class="col-sm-3 control-label no-padding-right">指标类型：</label>
                            <div class="col-sm-9">
                                <select class="form-control" id="kpiType" name="kpiType" style="border-radius: 0px;">
                                </select>
                            </div>
                        </div>
                        <div class="form-group itemlist" style="height:200px; overflow: auto;">
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-warning" data-dismiss="modal">${i18n('cancel')}</button>
                    <button type="button" class="btn btn-primary js-save">添加</button>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>
    <div id="orgselectdiv"></div>
    <div id="attachselect"></div>
</body>
<%include("/app/resapi/sysjs.html"){}%>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.core.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.excheck.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.exedit.js"></script>
<script type="text/javascript" src="/module/bootstrap-table/bootstrap-table.js"></script>
<script type="text/javascript" src="/module/bootstrap-table/bootstrap-table-${localeLangCountry()}.js"></script>
<script type="text/javascript" src="/module/jeDate/jeDate.js"></script>
<script type="text/javascript" src="/assets/js/editors/summernote/summernote.js"></script>
<script type="text/javascript" src="/module/fileupload/ajaxfileupload.js"></script>
<script type="text/javascript" src="/module/fileupload/fileupload.js"></script>
<script type="text/javascript" src="/module/fileupload/attachselect.js"></script>
<script type="text/javascript" src="/module/orgselect/orgselect.js"></script>
<script type="text/javascript" src="/gobal/js/page/hr/hrapi.js"></script>
<script type="text/javascript" src="/gobal/js/page/hr/kpi/kpiplanmanage.js"></script>
</body>
</html>
